﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TinhLuong.aspx.cs" Inherits="ChamCong.Admin.TinhLuong" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
         Tháng :
        <asp:DropDownList ID="drThang" runat="server">
            <asp:ListItem Value="1">Tháng 1</asp:ListItem>
            <asp:ListItem Value="2">Tháng 2</asp:ListItem>
            <asp:ListItem Value="3">Tháng 3</asp:ListItem>
            <asp:ListItem Value="4">Tháng 4</asp:ListItem>
            <asp:ListItem Value="5">Tháng 5</asp:ListItem>
            <asp:ListItem Value="6">Tháng 6</asp:ListItem>
            <asp:ListItem Value="7">Tháng 7</asp:ListItem>
            <asp:ListItem Value="8">Tháng 8</asp:ListItem>
            <asp:ListItem Value="9">Tháng 9</asp:ListItem>
            <asp:ListItem Value="10">Tháng 10</asp:ListItem>
            <asp:ListItem Value="11">Tháng 11</asp:ListItem>
            <asp:ListItem Value="12">Tháng 12</asp:ListItem>
        </asp:DropDownList>
        Năm :<asp:TextBox ID="txtNam" runat="server"></asp:TextBox>
        <asp:Button class="button" ID="btnTinhLuong" runat="server" Text="Tính Lương" 
             onclick="btnTinhLuong_Click" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <sbc:sbcMsgBox ID="sbcMsgBox1" runat="server" UseJQuery="True" />
                <br />
                <asp:GridView ID="gvBangCong" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" >
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="MaNV" HeaderText="Mã NV" SortExpression="MaNV" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TenNV" HeaderText="Họ Tên" SortExpression="TenNV" />
                        <asp:BoundField DataField="CongLamViec" HeaderText="Công Tháng" 
                            SortExpression="CongLamViec" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LuongLamViec" HeaderText="Lương Tháng" 
                            SortExpression="LuongLamViec" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CongTangCa" HeaderText="Công TC" 
                            SortExpression="CongTangCa" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LuongTangCa" HeaderText="Lương TC" 
                            SortExpression="LuongTangCa" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LuongPhuCap" HeaderText="Phụ Cấp" 
                            SortExpression="LuongPhuCap" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HieuSuat" HeaderText="Hiệu Suất (%)" 
                            SortExpression="HieuSuat" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TongLuong" HeaderText="Tổng Lương" 
                            SortExpression="TongLuong" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>

